package net.tycmc.cty.ctyms.timejob.iems.job;

import net.tycmc.bulb.common.util.DateUtil;
import net.tycmc.cty.ctyms.timejob.common.DateControl;
import net.tycmc.cty.ctyms.timejob.iems.service.AllScanService;
import net.tycmc.cty.ctyms.timejob.iems.service.ChangeInstallRecordService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author songxiaohu
 *未采集到参数集合
 */
public class ChangeInstallRecordJob extends QuartzJobBean{
	private ChangeInstallRecordService cirs;


	public ChangeInstallRecordService getCirs() {
		return cirs;
	}


	public void setCirs(ChangeInstallRecordService cirs) {
		this.cirs = cirs;
	}


	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		// TODO Auto-generated method stub
		System.out.println("---------------------换装记录作业开始------------------------------"+DateControl.getDateTime(0));
		String msgtime=DateUtil.addDay(-1);
		cirs.startWork(msgtime);
		System.out.println("---------------------换装记录统计作业结束------------------------------"+DateControl.getDateTime(0));
	}
	
}
